var baseUrl = "http://39.98.47.61:18882";
var Parameter = {}; //请求参数全局配置
Parameter.source = 3;
Array.prototype.insert = function(index, item) {
	this.splice(index, 0, item);
};
var scoreMap = [];
scoreMap.insert(0, "胜");
scoreMap.insert(1, "平");
scoreMap.insert(2, "负");
//让球胜平负
scoreMap.insert(3, "让球胜");
scoreMap.insert(4, "让球平");
scoreMap.insert(5, "让球负");
//半全场
scoreMap.insert(6, "胜胜");
scoreMap.insert(7, "胜平");
scoreMap.insert(8, "胜负");
scoreMap.insert(9, "平胜");
scoreMap.insert(10, "平平");
scoreMap.insert(11, "平负");
scoreMap.insert(12, "负胜");
scoreMap.insert(13, "负平");
scoreMap.insert(14, "负负");
//比分-胜
scoreMap.insert(15, "1:0");
scoreMap.insert(16, "2:0");
scoreMap.insert(17, "2:1");
scoreMap.insert(18, "3:0");
scoreMap.insert(19, "3:1");
scoreMap.insert(20, "3:2");
scoreMap.insert(21, "4:0");
scoreMap.insert(22, "4:1");
scoreMap.insert(23, "4:2");
scoreMap.insert(24, "5:0");
scoreMap.insert(25, "5:1");
scoreMap.insert(26, "5:2");
scoreMap.insert(27, "胜其他");
//比分-平
scoreMap.insert(28, "0:0");
scoreMap.insert(29, "1:1");
scoreMap.insert(30, "2:2");
scoreMap.insert(31, "3:3");
scoreMap.insert(32, "平其他");
//比分-负
scoreMap.insert(33, "0:1");
scoreMap.insert(34, "0:2");
scoreMap.insert(35, "1:2");
scoreMap.insert(36, "0:3");
scoreMap.insert(37, "1:3");
scoreMap.insert(38, "2:3");
scoreMap.insert(39, "0:4");
scoreMap.insert(40, "1:4");
scoreMap.insert(41, "2:4");
scoreMap.insert(42, "0:5");
scoreMap.insert(43, "1:5");
scoreMap.insert(44, "2:5");
scoreMap.insert(45, "负其他");
//总进球
scoreMap.insert(46, "0");
scoreMap.insert(47, "1");
scoreMap.insert(48, "2");
scoreMap.insert(49, "3");
scoreMap.insert(50, "4");
scoreMap.insert(51, "5");
scoreMap.insert(52, "6");
scoreMap.insert(53, "7+");

var scoreMap_24 = [];
//胜负
scoreMap_24.insert(0, "主负");
scoreMap_24.insert(1, "主胜");
//让分胜负
scoreMap_24.insert(2, "让分主负");
scoreMap_24.insert(3, "让分主胜");
//大小分
scoreMap_24.insert(4, "大分");
scoreMap_24.insert(5, "小分");
//胜分差
scoreMap_24.insert(6, "主负（1-5）");
scoreMap_24.insert(7, "主负（6-10）");
scoreMap_24.insert(8, "主负（11-15）");
scoreMap_24.insert(9, "主负（16-20）");
scoreMap_24.insert(10, "主负（21-25）");
scoreMap_24.insert(11, "主负（26+）");
scoreMap_24.insert(12, "主胜（1-5）");
scoreMap_24.insert(13, "主胜（6-10）");
scoreMap_24.insert(14, "主胜（11-15）");
scoreMap_24.insert(15, "主胜（16-20）");
scoreMap_24.insert(16, "主胜（21-25）");
scoreMap_24.insert(17, "主胜（26+）");

function isAndroid() {
	var u = navigator.userAgent;
	return u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
}

function getPar() {
	var url = location.href;
	var nameValue;
	var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
	var paraObj = {};
	for(var i = 0; nameValue = paraString[i]; i++) {
		var name = nameValue.substring(0, nameValue.indexOf("=")).toLowerCase();
		var value = nameValue.substring(nameValue.indexOf("=") + 1, nameValue.length);
		if(value.indexOf("#") > -1) {
			value = value.split("#")[0];
		}
		paraObj[name] = value;
	}
	return paraObj;
}
loadscript = function(url) {
	var script = document.createElement("script");
	script.src = url + "?v=" + new Date().getTime();
	document.body.appendChild(script);
};